#include<iostream>
using namespace std;

int fun(char* s)
{
	char* s1 = s;
	while (*s != '\0') {
		s++;
	}
	return s - s1;
}
int main()
{
	/*char a = 3;
	char b = 127;
	char c = a + b;
	printf("%d\n", c);*/
	/*int arr[10] = { 1,2,3,4,5,6,7,8,9,10 };
	int* p = arr;
	for (int i = 0; i < 10; i++) {
		*(p + i) = 1;
	}
	for (int x : arr) {
		cout << x << " ";
	}*/
	//int* p = NULL;
	/*int arr[10] = { 1,2,3,4,5,6,7,8,9,10 };
	int* p1 = arr;
	int* p2 = arr + 9;
	while (p1 <= p2) {
		cout << *(p1++) << endl;
	}*/
	char s[] = "absdsa";
	int len = fun(s);
	cout << len << endl;
	return 0;
}